import React, { Component } from "react";
import Search from "./components/Search";
import List from "./components/List";
export default class App extends Component {
  state = {
    users: [], //用户列表
    isFrist: true, //是否首次加载
    isLoading: false, //是否加载中
    isError: false, //是否异常
  };
  updateApps = (state) => {
    this.setState(state);
  };
  render() {
    return (
      <div className="container">
        <Search updateApps={this.updateApps} />
        <List {...this.state} />
      </div>
    );
  }
}
